import request from '@/utils/request.js'

export const addAddress = (data) => {
  return request.post('/admin/address/add', data)
}

// 查询所有收货地址
export const getAddress = () => {
  return request.get('/admin/address/query')
}

// 根据id 查询并设置默认地址
export const getAddressById = (id) => {
  return request.get(`/admin/address/default/${id}`)
}
